package com.example.demos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demos.dto.GoodsQueryParamDTO;
import com.example.demos.entity.Goods;
import com.example.demos.entity.GoodsType;
import com.example.demos.vo.GoodsQueryParamVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    List<GoodsQueryParamVO> getGoodsList(GoodsQueryParamDTO goodsQueryParamDTO);

    List<GoodsType> getGoodsTypeList();

    int addGoods(Goods goods);

    int updateGoods(Goods goods);

    Goods selectOne(Integer id);

    List<Goods> selectByNameAndType(@Param("name") String name, @Param("goodsType") String goodsType);

    int deleteGoods(Integer id);

    List<Goods> queryStoreOper(Integer id);
}
